import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
import RouterView from '../router/RouterView';
export class Index extends Component {
    render() {
        console.log("xxx",this.props);
        let {routes} = this.props
        return (
            <div className="index">
                Index
                <header></header>
                <main>
                    <RouterView routes={routes}/>
                </main>
                <footer>
                    {/* NavLink是模拟a标签跳转 */}
                    <NavLink to="/index/movie">电影</NavLink>
                    <NavLink to="/index/cinema">影院</NavLink>
                    <NavLink to="/index/found">发现</NavLink>
                    <NavLink to="/index/my">我的</NavLink>
                </footer>
            </div>
        )
    }
}

export default Index
